var map = new BMap.Map('container');
        //雅芳婷坐标 114.02597366,22.54605355
        var point = new BMap.Point(114.089611,22.547576);
        map.enableScrollWheelZoom();
        map.centerAndZoom(point, 13);
        map.addControl(new BMap.OverviewMapControl());
        //map.addControl(new BMap.NavigationControl());
        var marker = new BMap.Marker(point);  // 创建标注
        map.addOverlay(marker);// 将标注添加到地图中
        marker.addEventListener("click", function () {
            //点击定位到终点
            map.panTo(new BMap.Point(114.089611,22.547576));
        });
var close = false;
$(".mapNav").click(function () {       
    $("#panel").hide();
    var u = navigator.userAgent;
    var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; // android终端
    var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); // ios终端
    window.location.href='http://apis.map.qq.com/tools/poimarker?type=0&marker=coord:22.5435600000,114.0819500000;title:婚礼地址;addr:深圳市福田区华富路018号中航华强北九方购物中心北区六层翠园酒家&key=4MIBZ-LZ3KX-PL24A-TQT6R-YHZW2-PEBW5&referer=车网通';       
})



